The default SSH port number for each CentOS release is 22. To improve security, you need to modify the default SSH port number to prevent the password from being compromised. Some VPS providers may be fined or temporarily terminate services if your
Linux Server:centos 6.2
Desktop system Environment: Windows 7
Connection tool: Putty
1. Modify SSH configuration file
Vi/etc/ssh/sshd_config Modify port, disable root login, add limit user
The code is as follows
Copy Code
CentOS is really troublesome to modify the SSH Port (Port) CentOS, or because there are too many security considerations and too many context issues need to be considered. Similar problems have been encountered in samba before, just like SSH. List
CentOS Study Notes-SSH, centos-sshConfigure SSH
If the network SSH service is enabled by default, you can test it on the client. If not, run the following command:
[Root @ www ~] #/Etc/init. d/sshd restart stopping sshd: [OK] Activating sshd: [OK] #
Recently requested by the company, the need for remote transmission and backup of file data, wrote an article on the SSH, SCP and rsync application configuration of the whole process, may be too wordy, but mainly to want to do not miss each process
Recently requested by the company, the need for remote transmission and backup of file data, wrote an article on the SSH, SCP and rsync application configuration of the whole process, may be too wordy, but mainly to want to do not miss each process
How do I modify the default SSH port in the CentOS system?
The default CentOS default port is 22, and you'll find a lot of log files in a long time, which is the error log left by the scan attack. So what we're going to do today is to change the
Configure the SSH service to log on to the Linux server using the certificate
Common authentication methods for logging on to a Linux server through SSH (Secure Shell) include passwords and certificates. From the security perspective, we recommend
The first thing to do is to modify the default port of SSH 22Need to modify file/etc/ssh/sshd_configUsing commandsVi/etc/ssh/sshd_config[[email protected] ~]# vi/etc/ssh/sshd_config# $OpenBSD: sshd_config,v 1.90 2013/05/16 04:09:14 dtucker Exp $#
First, IntroductionThe default SSH port for CentOS 7.3 Mini system is TCP 22 port, and for security reasons, the default 22 port is often modified for other ports. General city by modifying the/etc/ssh/sshd_config file, the file inside the "#Port 22"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.